package com.aptemo.webetek.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class TeamChangedEvent
		extends GwtEvent<TeamChangedHandler>
{
	public static final Type<TeamChangedHandler>	TYPE	= new GwtEvent.Type<TeamChangedHandler>();

	private String										id;
	private String										name;

	public TeamChangedEvent(String id, String name)
	{
		this.id = id;
		this.name = name;
	}

	@Override
	protected void dispatch(TeamChangedHandler handler)
	{
		handler.onTeamChanged(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<TeamChangedHandler> getAssociatedType()
	{
		return TYPE;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

}
